package chess;

import menu.GameDisplayPanel;

public class BishopPiece extends ChessPiece{
	
	
	public BishopPiece(boolean black, int x_, int y_) {
		super(black, x_, y_);
		
		
		movePossibilities = new int[4][GameDisplayPanel.boardSize-1][2];
		
		for (int i = 1; i < GameDisplayPanel.boardSize; i++){
			movePossibilities[0][i-1][0] = i;
			movePossibilities[0][i-1][1] = i;
			
			movePossibilities[1][i-1][0] = -i;
			movePossibilities[1][i-1][1] = i;
			
			movePossibilities[2][i-1][0] = i;
			movePossibilities[2][i-1][1] = -i;
			
			movePossibilities[3][i-1][0] = -i;
			movePossibilities[3][i-1][1] = -i;
		}
		
		attackPossibilities = movePossibilities;
	}
	
	public String getName(){
		return "bishop";
	}

}
